package site.microkang.house.renting.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.Value;
import site.microkang.house.renting.enums.InfoSourceEnum;

import java.util.Date;

/**
 * 出租房屋信息
 * @author liukang
 * @date 2021/3/3 11:25
 */
@TableName(value = "RENTING_HOUSE_RENTING")
@Getter
@Setter
@Builder
public class HouseRentingEntity {
    /*
    房屋id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /*
    房屋名称
     */
    @TableField(value = "name")
    private String name;
    /*
    发布来源（个人或者公司）
    0: 个人
    1: 公司
     */
    @TableField(value = "rentingSource")
    private Integer rentingSource;
    /*
    数据来源
     */
    @TableField(value = "sourceType")
    @EnumValue
    private InfoSourceEnum sourceType;
    /*
    地址
     */
    @TableField(value = "address")
    private String address;
    /*
    户型
     */
    @TableField(value = "houseType")
    private String houseType;
    /*
    租金区间大值
     */
    @TableField(value = "rentRegionMax")
    private Float rentRegionMax;
    /*
    租金区间小值
     */
    @TableField(value = "rentRegionMin")
    private Float rentRegionMin;
    /*
    发布时间
     */
    @TableField(value = "deployTime")
    private Date deployTime;
    /*
    房屋面积
     */
    @TableField(value = "houseArea")
    private Float houseArea;
    /*
    房屋朝向
     */
    @TableField(value = "orientations")
    private String orientations;
    /*
    出租方式
     */
    @TableField(value = "rentalMode")
    private String rentalMode;
    /*
    所在楼层
     */
    @TableField(value ="storey")
    private Integer storey;

    @TableField(value = "houseAddrCode")
    private Integer houseAddrCode;

    @TableField(value = "houseAddrName")
    private String houseAddrName;
    /*
    虚拟id
     */
    @TableField(value = "virId")
    private String virId;

    /*
    房屋套数（针对企业房源）
     */
    @TableField(value = "rentingNum")
    private Integer rentingNum;
    /*
    项目简介（针对企业房源）
     */
    @TableField(value = "remarks")
    private String remarks;

    /*
    是否删除
     */
    @TableLogic
    @TableField(value = "deleted")
    private Integer deleted;
}
